package cn.com.fabric.sdk;

/**
 * <h3>FileManage</h3>
 * <p>包含所有绝对路径 以便以后修改</p>
 * @author : sugar without coffee
 * @date : 2020-04-11 12:38
 **/
public class PathConf {

    /**
     * 需要修改的内容，只需要修改秘钥，其他不需要修改
     * org1KeyFileName:变量值为文件名，文件位于"resources/file/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"目录下
     * org2KeyFileName:变量值为文件名，文件位于"resources/file/fabric/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore"目录下
     * */
    public static final String org1KeyFileName ="7493276bb496d4357267daaec395da9d3c27802658f4a0dcef52d16974bc5c85_sk";
    public static final String org2KeyFileName ="0e82107bf595db524e2a50a434f9a167166006c69b28ed375562d9ab8741458a_sk";


    /**
     * Fabric公用路径
     * */
    public static final String DIR = "src/main/resources/crypto-config/";
    public static final String tlsOrderFilePath = DIR+"ordererOrganizations\\example.com\\tlsca\\tlsca.example.com-cert.pem";

    /**
     * 以下是所有从ubuntu copy下来的文件位置和文件名
     * 用于配置SdkInitOrg1
     * */
    public static final String org1KeyFolderPath = DIR+"peerOrganizations\\org1.example.com\\users\\Admin@org1.example.com\\msp\\keystore";
    public static final String org1CertFoldePath =DIR+"peerOrganizations\\org1.example.com\\users\\Admin@org1.example.com\\msp\\admincerts";
    public static final String org1CertFileName ="Admin@org1.example.com-cert.pem";
    public static final String org1TlsPeerFilePath = DIR+"peerOrganizations\\org1.example.com\\peers\\peer0.org1.example.com\\msp\\tlscacerts\\tlsca.org1.example.com-cert.pem";
    public static final String org1TxfilePath = DIR+"resr.tx";
    /**
     * 以下是所有从ubuntu copy下来的文件位置和文件名
     * 用于配置SdkInitOrg2
     * */
    public static final String org2KeyFolderPath = DIR+"peerOrganizations\\org2.example.com\\users\\Admin@org2.example.com\\msp\\keystore";
    public static final String org2CertFoldePath =DIR+"peerOrganizations\\org2.example.com\\users\\Admin@org2.example.com\\msp\\admincerts";
    public static final String org2CertFileName ="Admin@org2.example.com-cert.pem";
    public static final String org2TlsPeerFilePath = DIR+"peerOrganizations\\org2.example.com\\tlsca\\tlsca.org2.example.com-cert.pem";

    /**
     * Fabric升级需要的文件
     * */
    public static final String fabricUpdateFIle = "src/main/resources/chaincodeendorsementpolicy.yaml";

    /**
     * 链码存放地址
     * */
    public static final String chaincodeLocation = "src/main/resources/chaincode";

}
